import { createRouter, createWebHistory } from 'vue-router' 
import Login from '@/views/Login.vue' // 确保路径正确
const routes = [
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/',
    redirect: '/login'
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router